package com.design.movieticket.dto;

import com.design.movieticket.entity.Seat;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.SuperBuilder;

import java.io.Serializable;
import java.math.BigDecimal;
import java.time.LocalDateTime;
import java.util.List;

@Data
@AllArgsConstructor
@NoArgsConstructor
@SuperBuilder(toBuilder = true)
public class OrdersDto implements Serializable {
    @JsonSerialize(using = ToStringSerializer.class)
    Long id;

    String seatSelect;
    String orderNumber;
    BigDecimal orderPay;

    @JsonSerialize(using = ToStringSerializer.class)
    Long movieId;

    String movieName;
    String still;

    @JsonFormat(pattern = "MM月dd日 HH:mm")
    LocalDateTime startTime;
    @JsonFormat(pattern = "HH:mm")
    LocalDateTime endTime;

    String cinemaName;
    String address;
}
